<?php
// +----------------------------------------------------------------------
// | 微信菜单表
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2013 dunkebiao All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: dunkebiao <dunkebiao@163.com>
// +----------------------------------------------------------------------
namespace Home\Model;
use Think\Model;

class MenuModel extends Model {
	
	public function __construct()
	{
		parent::__construct();
	}
	
    public function add_menu($data){
        
        return $this->add($data);
        
    }   
    
    public function find_menu($where,$field,$order){
    	
    	return $this->where($where)->field($field)->order($order)->find();
    	
    }
    
    public function select_menu($where,$field,$order){
    	
    	return $this->where($where)->field($field)->order($order)->select();
    	
    }
    
    public function update_menu($where,$data){
    	
    	return $this->where($where)->save($data);
    }
}
